package com.lee.chapter01;

public class Test_ThreadLocal {
    private static ThreadLocal<Long> timeHolder = ThreadLocal.withInitial(System::currentTimeMillis);

    public static void main(String[] args) {
        Long aLong = timeHolder.get();
        timeHolder.set(System.currentTimeMillis());
        System.out.println(aLong);

        new Thread(() -> {
            System.out.println(timeHolder.get());
        }).start();

    }
}
